package com.ruoyi.payment.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 工资发放记录对象 salary_payment
 * 
 * @author cxs
 * @date 2025-05-31
 */
public class SalaryPayment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 工资发放ID，主键 */
    private Long id;

    /** 员工ID，关联员工表 */
    @Excel(name = "员工ID，关联员工表")
    private Long employeeId;

    /** 工资月份，格式YYYY-MM */
    @Excel(name = "工资月份，格式YYYY-MM")
    private String salaryMonth;

    /** 发放状态：待发放/已发放 */
    @Excel(name = "发放状态：待发放/已发放")
    private String paymentStatus;

    /** 实际发放日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "实际发放日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paymentDate;

    /** 删除标志（0代表存在 2代表删除） */
    private Long delFlag;

    /** 记录创建时间 */
    private Date createdAt;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setEmployeeId(Long employeeId) 
    {
        this.employeeId = employeeId;
    }

    public Long getEmployeeId() 
    {
        return employeeId;
    }

    public void setSalaryMonth(String salaryMonth) 
    {
        this.salaryMonth = salaryMonth;
    }

    public String getSalaryMonth() 
    {
        return salaryMonth;
    }

    public void setPaymentStatus(String paymentStatus) 
    {
        this.paymentStatus = paymentStatus;
    }

    public String getPaymentStatus() 
    {
        return paymentStatus;
    }

    public void setPaymentDate(Date paymentDate) 
    {
        this.paymentDate = paymentDate;
    }

    public Date getPaymentDate() 
    {
        return paymentDate;
    }

    public void setDelFlag(Long delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() 
    {
        return delFlag;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("employeeId", getEmployeeId())
            .append("salaryMonth", getSalaryMonth())
            .append("paymentStatus", getPaymentStatus())
            .append("paymentDate", getPaymentDate())
            .append("delFlag", getDelFlag())
            .append("createdAt", getCreatedAt())
            .toString();
    }
}
